package com.kingyea.mobilepolice.apimanage.providerservicehost.dao;

import com.kingyea.mobilepolice.apimanage.providerservicehost.bean.ProviderServiceHost;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @author Mr.Lin
 * @version v1.0.0
 * @description ProviderServiceHostMapper
 * @date Created in 2018-05-19 16:13:25
 */
@Repository
public interface ProviderServiceHostMapper {

    /**
     * 通过ID获取对象
     */
    ProviderServiceHost getById(@Param("hostSerialNo") String hostSerialNo);

    /**
     * 通过ID删除对象
     */
    void deleteById(@Param("hostSerialNo") String hostSerialNo);

    /**
     * 更新对象
     */
    void update(ProviderServiceHost obj);

    /**
     * 保存对象
     */
    void save(ProviderServiceHost obj);

    /**
     * 查询列表
     */
    List<ProviderServiceHost> list(ProviderServiceHost obj);

    List<ProviderServiceHost> searchByCondition(Map<String, Object> map);

}
